#pragma once
#include "Stdafx.h"

namespace Pulpy
{
	class Logger
	{	
	private:
		std::ostream& m_log;
		Logger(): m_log(!_Target.compare("")?std::cout :*(new std::ofstream(_Target.c_str())))  {};
		static std::string _Target;
	public:
		static void setOutputFile(std::string filename);
		static Logger getInstance();
		void addLog(char * error) { addLog(error, true); };
		void addLog(char * error, bool nextLine);
	};
}